<?php $this -> load -> view('adminx/header'); ?>
<!-- BEGIN CONTAINER -->
<div class="page-container">
	<!-- BEGIN SIDEBAR -->
	<?php $this -> load -> view('adminx/mune'); ?>
	<!-- END SIDEBAR -->
	<!-- BEGIN CONTENT -->
	<div class="page-content-wrapper">
		<div class="page-content">
			<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<!-- /.modal -->
			<h3 class="page-title"> <?php echo $title; ?> <small><?php echo $en; ?></small></h3>
			<div class="page-bar">
				<ul class="page-breadcrumb">
					<li>
						<i class="fa fa-home"></i>
						<a href="/adminx">首页</a>
						<i class="fa fa-angle-right"></i>
					</li>
					<li>
						<a href="#"><?php echo $title; ?></a>
					</li>
				</ul>
			</div>
			<!-- END PAGE HEADER-->
			<div class="clearfix"></div>
			<div class="row">
				<div class="col-md-12 col-sm-12">
					<!-- BEGIN REGIONAL STATS PORTLET-->
					<div class="note note-success">
						<p>1，守护程序运行时间为每天上午10：20；</p>
						<p>2，红包金额设置的范围是1元到200元；</p>
						<p>3，00：00到第二天的08：00，这个时间段腾讯服务器不接收红包发送请求；</p>
						<p>3，会员的订单款项累计够500元后，会自动转账到对公银行账号；</p>
					</div>
					<div class="portlet light ">
						<div class="portlet-title">
							<div class="caption">
								<i class="icon-share font-red-sunglo"></i>
								<span class="caption-subject font-red-sunglo bold uppercase"><?php echo $title; ?>管理</span>
							</div>
							<div class="actions">
								<a class="btn btn-circle btn-icon-only blue" href="javascript:;" onclick="alert_ts('<?php echo $this -> config -> item('xt_ts'); ?>')"> <i class=" icon-bulb"></i> </a>
								<a class="btn btn-circle btn-icon-only green refresh" href="javascript:;" > <i class="icon-refresh"></i> </a>
								<a class="btn btn-circle btn-icon-only red" href="javascript:;"><i class="icon-trash"></i></a>
								<a class="btn btn-circle btn-icon-only btn-default fullscreen" href="javascript:;"> </a>
							</div>
						</div>
						<div class="portlet-body">
							<div class="btn-toolbar margin-bottom-10">
								<form class="btn-toolbar" id="get_tbody" onkeydown="if(event.keyCode==13)return false;">
									<div class="input-group" style="max-width: 250px;margin-right: 10px;">
						                 <input type="text" class="form-control form_datetimex"  id="day1" name="day1" value="<?php echo date('Y-m-d',strtotime('-7day')); ?>">
                                          <span class="input-group-btn">
                                              <button class="btn btn-default" type="button">-</button>
                                           </span>
                                          <input type="text" class="form-control form_datetimex"  id="day2" name="day2" value="<?php echo date('Y-m-d'); ?>">
                                       </div>
									<div class="portlet-input input-inline" style="margin-left: 10px;width: 150px;">
										<div class="input-icon right">
											<i class="icon-magnifier"></i>
											<input id="key" name="key" type="text" class="form-control" placeholder="search...">
										</div>
									</div>
									<div class="portlet-input input-inline">
										<select  id="page" name="page" class="form-control input-circle" style="width: 100px;">
											<option>1</option>
										</select>
									</div>
									<div class="portlet-input input-inline">
										<select  id="typex" name="type" class="form-control input-circle" style="width: 100px;">
											<option value="0">全部</option>
											<option value="-1">提现</option>
											<option value="-2">购物</option>
											<option value="-3">活动</option>
											<option value="-4">竞拍</option>
											<option value="-5">红包</option>
											<option value="1">充值</option>
											<option value="2">粉丝奖励</option>
											<option value="3">购物礼券</option>
											<option value="4">销售收益</option>
											<option value="5">货款收益</option>
											<option value="6">分享收益</option>
										</select>
									</div>
									
									<div class="portlet-input input-inline">
										<button onclick="up_sd_all()" type="button" class="btn default blue"><i class="fa fa-qrcode"></i>更新全部审核</button>
									</div>
								</form>
							</div>
							<div class=""></div>
							<div class="table-scrollable table-scrollable-borderless">
								<table class="table table-hover table-light">
									<thead>
										<tr>
											<th>#</th>
											<th>头像</th>
											<th>昵称</th>
											<th>类型</th>
											<th>金额</th>
											<th>内容</th>
											<th>备注</th>
											<th>时间</th>
											<th>状态</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody id="tbody">
									</tbody>
								</table>
							</div>
						</div>
					</div>
					<!-- END REGIONAL STATS PORTLET-->
				</div>
			</div>
		</div>
	</div>
	
	<!-- BEGIN QUICK SIDEBAR -->
	<?php $this -> load -> view('adminx/lt'); ?>
	<!-- END QUICK SIDEBAR -->
</div>
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<?php $this -> load -> view('adminx/footer'); ?>
<script>
    var _model='xj';
</script>
<script src="/mex/lance/domodel.js"></script>
<script>
    function up_sd_all(){
    	    $.ajax({
						type : "post",
						url : "/iadmin/xj/up_sd_all",
						dataType : "json",
						data : {
							idx : 0
						},
						success : function(msg) {
							if (msg.type == 1) {
								get_tbody(_model);
								alert_ts('审核成功！');
							} else {
								alert_ts('抱歉，审核失败！');
							}
						}
					});
    }
	function send_sd(_idx) {
	bootbox.dialog({
		message : "是否审核通过?",
		title : "审核提示",
		buttons : {
			success : {
				label : "<i class=\"fa  fa-compress\"></i> 关闭",
				className : "default",
				callback : function() {
				}
			},
			danger : {
				label : "<i class=\"fa fa-send\"></i> 通过",
				className : "red",
				callback : function() {
					$.ajax({
						type : "post",
						url : "/iadmin/xj/up_sd",
						dataType : "json",
						data : {
							idx : _idx
						},
						success : function(msg) {
							if (msg.type == 1) {
								get_tbody(_model);
								alert_ts('审核成功！');
							} else {
								alert_ts('抱歉，审核失败！');
							}
						}
					});
				}
			}
		}
	});
}
</script>